package com.mftour.moudles.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mftour.moudles.api.UserApi;

@RestController
@RequestMapping("/fegin/user1")
public class UserFeginController implements UserApi {

	@Autowired
	Environment environment;

	@Override
	public String getAllUserListPort() {
		return "fegin say " + environment.getProperty("local.server.port");
	}

	@Override
	public String getAllUserList() {
		return "fegin say v2";
	}

}
